package com.material.pound.params;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.material.common.annotation.Excel;
import com.material.common.annotation.Excel.Type;
import com.material.pound.vo.FuelAssayResultVo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author ganxinge
 */
public class FuelPoundImportParams {

    @Excel(name = "供应商", type = Type.IMPORT)
    private String supplierName;
    @Excel(name = "燃料品名", type = Type.IMPORT)
    private String fuelName;
    @Excel(name = "车牌号", type = Type.IMPORT)
    private String carNum;
    @Excel(name = "送达日期", type = Type.IMPORT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date reservationDate;
    private List<FuelAssayResultVo> properties = new ArrayList<>();

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getFuelName() {
        return fuelName;
    }

    public void setFuelName(String fuelName) {
        this.fuelName = fuelName;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public Date getReservationDate() {
        return reservationDate;
    }

    public void setReservationDate(Date reservationDate) {
        this.reservationDate = reservationDate;
    }

    public List<FuelAssayResultVo> getProperties() {
        return properties;
    }

    public void setProperties(List<FuelAssayResultVo> properties) {
        this.properties = properties;
    }

    @Override
    public String toString() {
        return "FuelPoundImportParams{" +
                "supplierName='" + supplierName + '\'' +
                ", fuelName='" + fuelName + '\'' +
                ", carNum='" + carNum + '\'' +
                ", reservationDate=" + reservationDate +
                ", properties=" + properties +
                '}';
    }
}
